package sql;

public class SQLCommand implements SQLOperate{

    private final String sql;

    public SQLCommand(String sql) {
        this.sql = sql;
    }

    @Override
    public void execute() {
        System.out.println("执行SQL语句：" + sql);
    }

    @Override
    public String getSQL() {
        return sql;
    }
}
